﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MonitorServersWeb;

public partial class Controls_ucServerDisksSpace : System.Web.UI.UserControl
{
    public ServerInfo serverInfo { set; get; }
    protected void Page_Load(object sender, EventArgs e)
    {
        lblServerName.Text = "Server Name: "+serverInfo.serverName;
            List<ServerDisks> disks;
            if ((disks = WMIUtil.WMIUtilStatic.GetDiskSpace(serverInfo)) != null)
            {
                //DataList1.dat
                DataList1.DataSource = disks;
                DataList1.DataBind();
            }
       
    }
}